PRAMADILLO\Woocommerce_Pay_Per_Post_Restrict_Content B

Total Complexity 90
Dependencies 1
Dependents 3
Total lines 460
Lines of code 315
Logical lines of code 190
Comment lines 46
Methods 29
Properties 10

Methods 29

Method Rating Maintainability Complexity Lines of code
show_content()
A
51 10 26
can_user_view_content()
A
53 10 21
get_time_difference()
S
53 7 24
check_if_purchased()
S
55 6 19
check_if_has_access()
S
59 5 16
process_status_shortcode()
S
59 5 15
check_if_should_show_paywall()
S
64 5 11
get_paywall_content()
S
53 3 21
__construct()
S
52 2 26
check_if_admin_call()
S
67 3 8
check_if_admin_user_have_access()
S
65 3 9
check_if_user_role_has_access()
S
64 3 10
check_if_is_paid_memberships_pro_member()
S
65 3 9
check_if_is_member()
S
65 3 9
check_if_is_subscriber()
S
65 3 9
countdown_refresh()
S
63 1 18
check_if_logged_in()
S
72 2 5
check_if_protected()
S
68 2 8
check_if_post_contains_subscription_products()
S
71 2 5
check_if_post_contains_membership_products()
S
71 2 5
check_if_post_contains_paid_memberships_pro_membership_products()
S
71 2 5
register_shortcodes()
S
79 1 3
set_track_pageview()
S
80 1 3
show_paywall()
S
79 1 3
is_expired()
S
80 1 3
get_current_user_roles()
S
81 1 3
shortcode_pageview_status()
S
65 1 8
shortcode_expiration_status()
S
67 1 7
available_status_templates()
S
72 1 6